package demo04;

public class Person {
    private String name;
    private int age;

    //快捷键无参构造code>Generater>Constractor>下面中间选项都不选
    public Person() {
    }

    //快捷键全参构造
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    //快捷键生成Getter、Setter:code>Generator>Getter and Setter>按shift键可以全选>ok
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
